package com.lzy.concertticket.dao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lzy.concertticket.model.entity.UserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzy.concertticket.model.req.UserReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 30793
* @description 针对表【tb_user】的数据库操作Mapper
* @createDate 2025-08-15 22:50:26
* @Entity com.lzy.concertticket.model.entity.UserEntity
*/
@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {

    UserEntity selectUserByAccount(String account);

    Page<UserEntity> getUserPage(Page<UserEntity> page, @Param("u") UserReq userReq);
    UserEntity selectByIdOrUsernameOrPhoneOrEmail(
            @Param("id") Long id,
            @Param("username") String username,
            @Param("phone") String phone,
            @Param("email") String email);
}




